﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Team6_Algorithms.HighEnd;
using Team6_Algorithms.AidingClasses;
using System.Drawing;


namespace VisionApplication
{
    class HSLSeparator : VisionAlgorithm
    {


        public HSLSeparator(String name, string[] required) : base(name, required) { }

        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage, Object obj)
        {
            Bitmap returnImage = new Bitmap(sourceImage);

            HsvFilter.startExclusionFilter(returnImage, settings.HueLow, settings.HueHigh, settings.SaturationLow, settings.SaturationHigh, settings.LightnessLow, settings.LightnessHigh);

        //    Points = HsvFilter.startBinaryImage(returnImage);

         //   HsvFilter.objectsToImage(returnImage, Points);

            this.Image = returnImage;

            return returnImage;

        }
    }
}
